<%--
  Created by IntelliJ IDEA.
  User: 42243
  Date: 2021/3/31
  Time: 12:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/web.css"/>
</head>
<body>
<jsp:useBean id="adminInfo" class="com.cn.entity.AdminInfo" scope="session"/>
<div class="title">
    <a href="<%=request.getContextPath()%>/admin.jsp"><div>首页</div></a>
    <%--a href="<%=request.getContextPath()%>/"><div>用户管理</div></a--%>
    <a href="<%=request.getContextPath()%>/SearchBookServlet"><div>订阅管理</div></a>
    <a href="<%=request.getContextPath()%>/newspaper_all"><div>查看报刊</div></a>
    <a href="<%=request.getContextPath()%>/addbooks.jsp"><div>添加报刊</div></a>
    <a href="<%=request.getContextPath()%>/BookStatisticsServlet"><div>统计信息</div></a>
    <a href="<%=request.getContextPath()%>/system_maintenance.jsp"><div>系统维护</div></a>
    <div id="login-btn">
    <span class="glyphicon glyphicon-user" id="span"></span>
    </div>
    <div id="quit">
        <span id="quit-span">退出</span>
    </div>
</div>

<script src="js/jquery.js"/>

<script>
    $('#span').text("<jsp:getProperty name="adminInfo" property="username"/>")
</script>

<script>
    $('#span').click(function () {
        $('#span').text("<jsp:getProperty name="adminInfo" property="username"/>")
    })

    $('#quit').click(function () {
        window.location.href='login.jsp';
    })
</script>

</body>
</html>
